package com.alex.service;

import java.util.List;

import com.alex.DAO.IReplyDAO;
import com.alex.entity.Reply;

public class ReplyService implements IReplyService {
	private IReplyDAO replyDAO;
	
	public IReplyDAO getReplyDAO() {
		return replyDAO;
	}
	public void setReplyDAO(IReplyDAO replyDAO) {
		this.replyDAO = replyDAO;
	}
	public void save(Reply transientInstance){
		this.replyDAO.save(transientInstance);
	}
	public Reply findById(java.lang.Integer id){
		return this.replyDAO.findById(id);
	}
	public int findCountReply(int tipId) throws Exception{
		return this.replyDAO.findCountReply(tipId);
	}
	public List findListReply(int tipId, int pageNo, int pageSize) throws Exception{
		return this.replyDAO.findListReply(tipId, pageNo, pageSize);
	}
}
